using FlowCanvas.Nodes;
using NodeCanvas.Framework;
using UnityEngine;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    public class Switch2LookAtCamera : CallableActionNode<Vector3,Vector3,Vector3,Transform,float>
    {
        public override void Invoke(Vector3 cameraPos, Vector3 cameraRot, Vector3 lookAtPos, Transform lookAt,float fov)
        {
            if (lookAt == parentNode.graph.agent.transform)
            {
                lookAt = null;
            }
            BlueprintUtils.Switch2LookAtCamera(cameraPos, cameraRot, lookAtPos, lookAt,fov);
        }
    }
}